package com.ruoyi.enterprise.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.enterprise.mapper.ComBaseMapper;
import com.ruoyi.enterprise.domain.ComBase;
import com.ruoyi.enterprise.service.IComBaseService;

/**
 * 沪深京AService业务层处理
 * 
 * @author ruoyi
 * @date 2024-03-24
 */
@Service
public class ComBaseServiceImpl implements IComBaseService 
{
    @Autowired
    private ComBaseMapper comBaseMapper;

    /**
     * 查询沪深京A
     * 
     * @param id 沪深京A主键
     * @return 沪深京A
     */
    @Override
    public ComBase selectComBaseById(Long id)
    {
        return comBaseMapper.selectComBaseById(id);
    }

    /**
     * 查询沪深京A列表
     * 
     * @param comBase 沪深京A
     * @return 沪深京A
     */
    @Override
    public List<ComBase> selectComBaseList(ComBase comBase)
    {
        return comBaseMapper.selectComBaseList(comBase);
    }

    /**
     * 新增沪深京A
     * 
     * @param comBase 沪深京A
     * @return 结果
     */
    @Override
    public int insertComBase(ComBase comBase)
    {
        return comBaseMapper.insertComBase(comBase);
    }

    /**
     * 修改沪深京A
     * 
     * @param comBase 沪深京A
     * @return 结果
     */
    @Override
    public int updateComBase(ComBase comBase)
    {
        return comBaseMapper.updateComBase(comBase);
    }

    /**
     * 批量删除沪深京A
     * 
     * @param ids 需要删除的沪深京A主键
     * @return 结果
     */
    @Override
    public int deleteComBaseByIds(Long[] ids)
    {
        return comBaseMapper.deleteComBaseByIds(ids);
    }

    /**
     * 删除沪深京A信息
     * 
     * @param id 沪深京A主键
     * @return 结果
     */
    @Override
    public int deleteComBaseById(Long id)
    {
        return comBaseMapper.deleteComBaseById(id);
    }
}
